import os
import sys
from cx_Freeze import setup, Executable


base = None
# if sys.platform == "win32":
#     base = "Win32GUI"

build_exe_options = {
    "packages": ["ydpic"],
    "includes": ["tkinter"],
    "excludes": ["distutils","test", "numpy","xmlrpc", "xml", "pydoc_data","win32com","win32api"],
    "include_files": [
        "ydpic/config.ini"
    ]
}

setup(name="ydpic",
      version="0.1",
      description="ydpic",
      options={"build_exe": build_exe_options},
      executables=[Executable("./ydpic/ydpic.py", base = base)]
      )

os.rename("./build/exe.win32-3.8/lib/Tkinter", "./build/exe.win32-3.8/lib/tkinter")